<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="AddSports.aspx.vb" Inherits="Admin_AddSports" title="Add Sport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="RightContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="maincontent" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
        DataSourceID="SqlDataSource1" AllowPaging="True" AllowSorting="True">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowSelectButton="True" />
        </Columns>
    </asp:GridView>
    &nbsp;&nbsp;&nbsp; Add Sport
    <asp:TextBox ID="tb_addSport" runat="server"></asp:TextBox>
    <asp:Button ID="bt_addSport" runat="server" Text="Add New Sport" />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="af_GetSports" DeleteCommand="af_DeleteSport" DeleteCommandType="StoredProcedure" InsertCommand="af_CreateSport" InsertCommandType="StoredProcedure" SelectCommandType="StoredProcedure" UpdateCommand="af_UpdateSport" UpdateCommandType="StoredProcedure">
        <DeleteParameters>
            <asp:Parameter Name="sportID" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="sportID" Type="Int32" />
            <asp:Parameter Name="name" Type="String" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="sportName" Type="String" />
            <asp:Parameter Direction="InputOutput" Name="sportID" Type="Int32" />
        </InsertParameters>
    </asp:SqlDataSource>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="adBox" Runat="Server">
</asp:Content>

